package com.buaa.aimall.modelModule.Entity;

import com.baomidou.mybatisplus.annotation.*;
import com.buaa.aimall.Utils.Enum.ChargeTypeEnum;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "model_resource")
@Builder
public class ModelResourceEntity {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("fk_owner")
    private String fkOwner;

    @TableField("fk_model")
    private String fkModel;

    @TableField("end_time")
    private LocalDateTime endTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("usage_times")
    private int usageTimes;

    @TableField("url")
    private String url;

    @TableField("charge_type")
    private ChargeTypeEnum chargeType;
}
